public class Test {
    public static void main(String[] args) {
        User us = new User();
        us.setName("abc");
        us.setPassWord("1234");
        try {
            us.login("abc1","1234");
        } catch (PassPasswordException e) {
            e.printStackTrace();
        } catch (PassNameException e) {
            e.printStackTrace();
        }
    }
}
